import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/index',
      name: 'index',
      component: () => import('@/components/m/index'),
      children:[
        {
          path: '/home',
          name: 'home',
          component: () => import('@/components/m/home'),
        },
        {
          path: '/fl',
          name: 'fl',
          component: () => import('@/components/m/fl'),
        },
        {
          path: '/cart',
          name: 'cart',
          component: () => import('@/components/m/cart'),
        },
        {
          path: '/my',
          name: 'my',
          component: () => import('@/components/m/my'),
        },
      ]
    },
  ]
})
